﻿/********************************************************************************
** @ Date:2025/06/18
** @ Author: Gaojia
** @ Description: 组合场景配置界面
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#ifndef USettingsPage_H
#define USettingsPage_H

#include <QWidget>
#include "CBaseNode.h"
#include "CBaseDevice.h"
#include "CMeasurePoint.h"
#include "CNormalNode.h"
#include "CDeviceManager.h"
#include "ui_USettingsPage.h"

class USettingsPage : public QWidget
{
	Q_OBJECT
public:
	USettingsPage(QWidget *parent = nullptr);
	void refushUi();     //新工程初始化
	void refushCombox();  //刷新控件选择下拉菜单
	void setRootNode(CBaseNode* root);
	void initUi();   //初始化界面
	void clickLog();  //单击了日志控件 
	~USettingsPage();
	USceneManager *m_pSceneManager;
	UCarouselManager *m_pCarouselManager;
private:
	bool eventFilter(QObject* obj, QEvent* event) override;
	//void buildItemTree(CBaseNode *pNode, QStandardItem *pParentItem);  //创建树
private:
	CBaseNode* rootNode;
	QStandardItemModel *m_pModel;
	Ui::USettingsPageClass ui;
	QWidget* m_pWidget;
public slots :
	void slot_ShowPage(int nIndex);
	void slot_enlarge(bool bEnlarge);
};
#endif